// default package
// Generated 28 Jul, 2014 8:04:07 PM by Hibernate Tools 3.4.0.CR1
package com.galaxy.bean;

import java.math.BigDecimal;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * SalesFlatQuoteAddressItem generated by hbm2java
 */
@Entity
@Table(name = "sales_flat_quote_address_item", catalog = "magento")
public class SalesFlatQuoteAddressItem implements java.io.Serializable {

	private Integer addressItemId;
	private SalesFlatQuoteAddressItem salesFlatQuoteAddressItem;
	private SalesFlatQuoteItem salesFlatQuoteItem;
	private SalesFlatQuoteAddress salesFlatQuoteAddress;
	private Date createdAt;
	private Date updatedAt;
	private String appliedRuleIds;
	private String additionalData;
	private BigDecimal weight;
	private BigDecimal qty;
	private BigDecimal discountAmount;
	private BigDecimal taxAmount;
	private BigDecimal rowTotal;
	private BigDecimal baseRowTotal;
	private BigDecimal rowTotalWithDiscount;
	private BigDecimal baseDiscountAmount;
	private BigDecimal baseTaxAmount;
	private BigDecimal rowWeight;
	private Integer giftMessageId;
	private BigDecimal baseCost;
	private Integer productId;
	private Integer superProductId;
	private Integer parentProductId;
	private String sku;
	private String image;
	private String name;
	private String description;
	private Integer freeShipping;
	private Integer isQtyDecimal;
	private BigDecimal price;
	private BigDecimal discountPercent;
	private Integer noDiscount;
	private BigDecimal taxPercent;
	private BigDecimal basePrice;
	private BigDecimal priceInclTax;
	private BigDecimal basePriceInclTax;
	private BigDecimal rowTotalInclTax;
	private BigDecimal baseRowTotalInclTax;
	private BigDecimal hiddenTaxAmount;
	private BigDecimal baseHiddenTaxAmount;
	private Set salesFlatQuoteAddressItems = new HashSet(0);

	public SalesFlatQuoteAddressItem() {
	}

	public SalesFlatQuoteAddressItem(SalesFlatQuoteItem salesFlatQuoteItem,
			SalesFlatQuoteAddress salesFlatQuoteAddress, Date createdAt,
			Date updatedAt, BigDecimal qty, BigDecimal rowTotal,
			BigDecimal baseRowTotal) {
		this.salesFlatQuoteItem = salesFlatQuoteItem;
		this.salesFlatQuoteAddress = salesFlatQuoteAddress;
		this.createdAt = createdAt;
		this.updatedAt = updatedAt;
		this.qty = qty;
		this.rowTotal = rowTotal;
		this.baseRowTotal = baseRowTotal;
	}

	public SalesFlatQuoteAddressItem(
			SalesFlatQuoteAddressItem salesFlatQuoteAddressItem,
			SalesFlatQuoteItem salesFlatQuoteItem,
			SalesFlatQuoteAddress salesFlatQuoteAddress, Date createdAt,
			Date updatedAt, String appliedRuleIds, String additionalData,
			BigDecimal weight, BigDecimal qty, BigDecimal discountAmount,
			BigDecimal taxAmount, BigDecimal rowTotal, BigDecimal baseRowTotal,
			BigDecimal rowTotalWithDiscount, BigDecimal baseDiscountAmount,
			BigDecimal baseTaxAmount, BigDecimal rowWeight,
			Integer giftMessageId, BigDecimal baseCost, Integer productId,
			Integer superProductId, Integer parentProductId, String sku,
			String image, String name, String description,
			Integer freeShipping, Integer isQtyDecimal, BigDecimal price,
			BigDecimal discountPercent, Integer noDiscount,
			BigDecimal taxPercent, BigDecimal basePrice,
			BigDecimal priceInclTax, BigDecimal basePriceInclTax,
			BigDecimal rowTotalInclTax, BigDecimal baseRowTotalInclTax,
			BigDecimal hiddenTaxAmount, BigDecimal baseHiddenTaxAmount,
			Set salesFlatQuoteAddressItems) {
		this.salesFlatQuoteAddressItem = salesFlatQuoteAddressItem;
		this.salesFlatQuoteItem = salesFlatQuoteItem;
		this.salesFlatQuoteAddress = salesFlatQuoteAddress;
		this.createdAt = createdAt;
		this.updatedAt = updatedAt;
		this.appliedRuleIds = appliedRuleIds;
		this.additionalData = additionalData;
		this.weight = weight;
		this.qty = qty;
		this.discountAmount = discountAmount;
		this.taxAmount = taxAmount;
		this.rowTotal = rowTotal;
		this.baseRowTotal = baseRowTotal;
		this.rowTotalWithDiscount = rowTotalWithDiscount;
		this.baseDiscountAmount = baseDiscountAmount;
		this.baseTaxAmount = baseTaxAmount;
		this.rowWeight = rowWeight;
		this.giftMessageId = giftMessageId;
		this.baseCost = baseCost;
		this.productId = productId;
		this.superProductId = superProductId;
		this.parentProductId = parentProductId;
		this.sku = sku;
		this.image = image;
		this.name = name;
		this.description = description;
		this.freeShipping = freeShipping;
		this.isQtyDecimal = isQtyDecimal;
		this.price = price;
		this.discountPercent = discountPercent;
		this.noDiscount = noDiscount;
		this.taxPercent = taxPercent;
		this.basePrice = basePrice;
		this.priceInclTax = priceInclTax;
		this.basePriceInclTax = basePriceInclTax;
		this.rowTotalInclTax = rowTotalInclTax;
		this.baseRowTotalInclTax = baseRowTotalInclTax;
		this.hiddenTaxAmount = hiddenTaxAmount;
		this.baseHiddenTaxAmount = baseHiddenTaxAmount;
		this.salesFlatQuoteAddressItems = salesFlatQuoteAddressItems;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "address_item_id", unique = true, nullable = false)
	public Integer getAddressItemId() {
		return this.addressItemId;
	}

	public void setAddressItemId(Integer addressItemId) {
		this.addressItemId = addressItemId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "parent_item_id")
	public SalesFlatQuoteAddressItem getSalesFlatQuoteAddressItem() {
		return this.salesFlatQuoteAddressItem;
	}

	public void setSalesFlatQuoteAddressItem(
			SalesFlatQuoteAddressItem salesFlatQuoteAddressItem) {
		this.salesFlatQuoteAddressItem = salesFlatQuoteAddressItem;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "quote_item_id", nullable = false)
	public SalesFlatQuoteItem getSalesFlatQuoteItem() {
		return this.salesFlatQuoteItem;
	}

	public void setSalesFlatQuoteItem(SalesFlatQuoteItem salesFlatQuoteItem) {
		this.salesFlatQuoteItem = salesFlatQuoteItem;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "quote_address_id", nullable = false)
	public SalesFlatQuoteAddress getSalesFlatQuoteAddress() {
		return this.salesFlatQuoteAddress;
	}

	public void setSalesFlatQuoteAddress(
			SalesFlatQuoteAddress salesFlatQuoteAddress) {
		this.salesFlatQuoteAddress = salesFlatQuoteAddress;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "created_at", nullable = false, length = 19)
	public Date getCreatedAt() {
		return this.createdAt;
	}

	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "updated_at", nullable = false, length = 19)
	public Date getUpdatedAt() {
		return this.updatedAt;
	}

	public void setUpdatedAt(Date updatedAt) {
		this.updatedAt = updatedAt;
	}

	@Column(name = "applied_rule_ids", length = 65535)
	public String getAppliedRuleIds() {
		return this.appliedRuleIds;
	}

	public void setAppliedRuleIds(String appliedRuleIds) {
		this.appliedRuleIds = appliedRuleIds;
	}

	@Column(name = "additional_data", length = 65535)
	public String getAdditionalData() {
		return this.additionalData;
	}

	public void setAdditionalData(String additionalData) {
		this.additionalData = additionalData;
	}

	@Column(name = "weight", precision = 12, scale = 4)
	public BigDecimal getWeight() {
		return this.weight;
	}

	public void setWeight(BigDecimal weight) {
		this.weight = weight;
	}

	@Column(name = "qty", nullable = false, precision = 12, scale = 4)
	public BigDecimal getQty() {
		return this.qty;
	}

	public void setQty(BigDecimal qty) {
		this.qty = qty;
	}

	@Column(name = "discount_amount", precision = 12, scale = 4)
	public BigDecimal getDiscountAmount() {
		return this.discountAmount;
	}

	public void setDiscountAmount(BigDecimal discountAmount) {
		this.discountAmount = discountAmount;
	}

	@Column(name = "tax_amount", precision = 12, scale = 4)
	public BigDecimal getTaxAmount() {
		return this.taxAmount;
	}

	public void setTaxAmount(BigDecimal taxAmount) {
		this.taxAmount = taxAmount;
	}

	@Column(name = "row_total", nullable = false, precision = 12, scale = 4)
	public BigDecimal getRowTotal() {
		return this.rowTotal;
	}

	public void setRowTotal(BigDecimal rowTotal) {
		this.rowTotal = rowTotal;
	}

	@Column(name = "base_row_total", nullable = false, precision = 12, scale = 4)
	public BigDecimal getBaseRowTotal() {
		return this.baseRowTotal;
	}

	public void setBaseRowTotal(BigDecimal baseRowTotal) {
		this.baseRowTotal = baseRowTotal;
	}

	@Column(name = "row_total_with_discount", precision = 12, scale = 4)
	public BigDecimal getRowTotalWithDiscount() {
		return this.rowTotalWithDiscount;
	}

	public void setRowTotalWithDiscount(BigDecimal rowTotalWithDiscount) {
		this.rowTotalWithDiscount = rowTotalWithDiscount;
	}

	@Column(name = "base_discount_amount", precision = 12, scale = 4)
	public BigDecimal getBaseDiscountAmount() {
		return this.baseDiscountAmount;
	}

	public void setBaseDiscountAmount(BigDecimal baseDiscountAmount) {
		this.baseDiscountAmount = baseDiscountAmount;
	}

	@Column(name = "base_tax_amount", precision = 12, scale = 4)
	public BigDecimal getBaseTaxAmount() {
		return this.baseTaxAmount;
	}

	public void setBaseTaxAmount(BigDecimal baseTaxAmount) {
		this.baseTaxAmount = baseTaxAmount;
	}

	@Column(name = "row_weight", precision = 12, scale = 4)
	public BigDecimal getRowWeight() {
		return this.rowWeight;
	}

	public void setRowWeight(BigDecimal rowWeight) {
		this.rowWeight = rowWeight;
	}

	@Column(name = "gift_message_id")
	public Integer getGiftMessageId() {
		return this.giftMessageId;
	}

	public void setGiftMessageId(Integer giftMessageId) {
		this.giftMessageId = giftMessageId;
	}

	@Column(name = "base_cost", precision = 12, scale = 4)
	public BigDecimal getBaseCost() {
		return this.baseCost;
	}

	public void setBaseCost(BigDecimal baseCost) {
		this.baseCost = baseCost;
	}

	@Column(name = "product_id")
	public Integer getProductId() {
		return this.productId;
	}

	public void setProductId(Integer productId) {
		this.productId = productId;
	}

	@Column(name = "super_product_id")
	public Integer getSuperProductId() {
		return this.superProductId;
	}

	public void setSuperProductId(Integer superProductId) {
		this.superProductId = superProductId;
	}

	@Column(name = "parent_product_id")
	public Integer getParentProductId() {
		return this.parentProductId;
	}

	public void setParentProductId(Integer parentProductId) {
		this.parentProductId = parentProductId;
	}

	@Column(name = "sku")
	public String getSku() {
		return this.sku;
	}

	public void setSku(String sku) {
		this.sku = sku;
	}

	@Column(name = "image")
	public String getImage() {
		return this.image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	@Column(name = "name")
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "description", length = 65535)
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "free_shipping")
	public Integer getFreeShipping() {
		return this.freeShipping;
	}

	public void setFreeShipping(Integer freeShipping) {
		this.freeShipping = freeShipping;
	}

	@Column(name = "is_qty_decimal")
	public Integer getIsQtyDecimal() {
		return this.isQtyDecimal;
	}

	public void setIsQtyDecimal(Integer isQtyDecimal) {
		this.isQtyDecimal = isQtyDecimal;
	}

	@Column(name = "price", precision = 12, scale = 4)
	public BigDecimal getPrice() {
		return this.price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	@Column(name = "discount_percent", precision = 12, scale = 4)
	public BigDecimal getDiscountPercent() {
		return this.discountPercent;
	}

	public void setDiscountPercent(BigDecimal discountPercent) {
		this.discountPercent = discountPercent;
	}

	@Column(name = "no_discount")
	public Integer getNoDiscount() {
		return this.noDiscount;
	}

	public void setNoDiscount(Integer noDiscount) {
		this.noDiscount = noDiscount;
	}

	@Column(name = "tax_percent", precision = 12, scale = 4)
	public BigDecimal getTaxPercent() {
		return this.taxPercent;
	}

	public void setTaxPercent(BigDecimal taxPercent) {
		this.taxPercent = taxPercent;
	}

	@Column(name = "base_price", precision = 12, scale = 4)
	public BigDecimal getBasePrice() {
		return this.basePrice;
	}

	public void setBasePrice(BigDecimal basePrice) {
		this.basePrice = basePrice;
	}

	@Column(name = "price_incl_tax", precision = 12, scale = 4)
	public BigDecimal getPriceInclTax() {
		return this.priceInclTax;
	}

	public void setPriceInclTax(BigDecimal priceInclTax) {
		this.priceInclTax = priceInclTax;
	}

	@Column(name = "base_price_incl_tax", precision = 12, scale = 4)
	public BigDecimal getBasePriceInclTax() {
		return this.basePriceInclTax;
	}

	public void setBasePriceInclTax(BigDecimal basePriceInclTax) {
		this.basePriceInclTax = basePriceInclTax;
	}

	@Column(name = "row_total_incl_tax", precision = 12, scale = 4)
	public BigDecimal getRowTotalInclTax() {
		return this.rowTotalInclTax;
	}

	public void setRowTotalInclTax(BigDecimal rowTotalInclTax) {
		this.rowTotalInclTax = rowTotalInclTax;
	}

	@Column(name = "base_row_total_incl_tax", precision = 12, scale = 4)
	public BigDecimal getBaseRowTotalInclTax() {
		return this.baseRowTotalInclTax;
	}

	public void setBaseRowTotalInclTax(BigDecimal baseRowTotalInclTax) {
		this.baseRowTotalInclTax = baseRowTotalInclTax;
	}

	@Column(name = "hidden_tax_amount", precision = 12, scale = 4)
	public BigDecimal getHiddenTaxAmount() {
		return this.hiddenTaxAmount;
	}

	public void setHiddenTaxAmount(BigDecimal hiddenTaxAmount) {
		this.hiddenTaxAmount = hiddenTaxAmount;
	}

	@Column(name = "base_hidden_tax_amount", precision = 12, scale = 4)
	public BigDecimal getBaseHiddenTaxAmount() {
		return this.baseHiddenTaxAmount;
	}

	public void setBaseHiddenTaxAmount(BigDecimal baseHiddenTaxAmount) {
		this.baseHiddenTaxAmount = baseHiddenTaxAmount;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "salesFlatQuoteAddressItem")
	public Set getSalesFlatQuoteAddressItems() {
		return this.salesFlatQuoteAddressItems;
	}

	public void setSalesFlatQuoteAddressItems(Set salesFlatQuoteAddressItems) {
		this.salesFlatQuoteAddressItems = salesFlatQuoteAddressItems;
	}

}
